<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="../public/pic/f.png" type="image/x-icon">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>动物家宠物医院·医生</title>
    <link rel="stylesheet" href="../public/css/bootstrap.min.css">
    <script src="js/d_Login.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            border: 0;
            list-style: none;
            text-decoration: none;
        }

        body {
            width: 100%;
            background-color: rgb(108, 141, 175);
        }

        .big-div {
            width: 900px;
            height: 600px;
            margin: 100px auto 0;
            overflow: hidden;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }

        .logo-div {
            width: 400px;
            float: left;
            overflow: hidden;
            margin-top: 100px;
        }

        .logo-div img {
            width: 100%;
            margin: 90px auto;
        }

        .form-div {
            width: 500px;
            height: 600px;
            background-color: #cccccc;
            float: right;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
        }

        h3 {
            color: black;
        }

        .form-con {
            width: 95%;
            height: auto;
            margin: 0 100px;
        }

        .form-control {
            text-align: center;
        }

        .forget {
            text-align: right;
        }

        .forget a {
            text-decoration: none;
        }

        .wrong{
            border-color: red;
            color: red;
        }
    </style>
</head>

<body>
    <div class="big-div">
        <!-- logo图标盒子 -->
        <div class="logo-div">
            <img src="../public/pic/logo.png">
        </div>
        <!-- 表单盒子 -->
        <div class="form-div">
            <h3 class="text-center mt-4">医 生 · 重 置 密 码</h3>
            <hr>
            <form class="row g-3 form-con" action="d_submetResetPassword.php" method="post">
                <div class="col-md-8">
                    <label for="resetdocID" class="form-label">您的工号</label>
                    <input type="text" class="form-control" id="resetdocID" onchange="resetID()" name="docID" required>
                </div>
                <div class="col-md-8">
                    <label for="resetpassword" class="form-label">新的密码</label>
                    <input type="password" class="form-control" id="resetpassword" onchange="resetPwd()" name="docPwd" required>
                </div>
                <div class="col-md-8">
                    <label for="resetrePassword" class="form-label">确认密码</label>
                    <input type="password" class="form-control" id="resetrePassword" onchange="resetRePwd()" required>
                </div>
                <div class="col-md-8">
                    <label for="resetkey" class="form-label">密钥重置</label>
                    <input type="text" class="form-control" id="resetkey" onchange="resetKey()" name="resetkey" required>
                </div>
                <div class="col-12">
                    <button class="btn btn-primary" type="submit" onclick="return resetForm()">重置</button>
                </div>
                <div class="col-8 forget">
                    <a href="doc_Login.html">返回登录>>></a>
                </div>
            </form>
        </div>
    </div>
</body>

</html>